//
//  Common.h
//  Rongniu
//
//  Created by Apple on 16/2/22.
//  Copyright © 2016年 Fangwei. All rights reserved.
//

#ifndef Common_h
#define Common_h


#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height

#define bl ([UIScreen mainScreen].bounds.size.width/414)
#define Minebl ([UIScreen mainScreen].bounds.size.width/600)




#define kTabBarHeight 49
#define kNavigationBarHeight 64


#define FW_IOS7 ([[[UIDevice currentDevice]systemVersion]floatValue] >= 7.0 ? YES : NO)
#define FW_IMAGE(name) [UIImage imageNamed:(name)]
#define kBorder_NavButton       36



//设备的型号
#define iPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)

#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

#define iPhone6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)

#define iPhone6_ ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2208), [[UIScreen mainScreen] currentMode].size) : NO)



//数据接口
#define Home_show                      @"index.html"  //首页数据

//个人中心模块
#define Register_show                  @"register.html"//注册
#define check_valicode_show            @"check_valicode.html"//发送验证码
#define register_save_show             @"register_save.html" //提交密码
#define login_show                     @"login.html"//登录
#define member_detail_show             @"member_detail.html"//个人设置
#define real_identify_show             @"real_identify.html"//实名认证
#define reset_pay_pwd_show             @"reset_pay_pwd.html"//设置提现密码
#define update_login_pwd_show          @"update_login_pwd.html"//修改登录密码
#define update_pay_pwd_show            @"update_pay_pwd.html"//修改提现密码
#define log_show                       @"log.html"//资金流水

//交易模块
#define project_list_show              @"project_list.html"//期货交易类型列表
#define real_time_quotation_show       @"real_time_quotation.html"//获取期货实时行情数据
#define order_list_show                @"order_list.html"//获取持仓数据
#define record_order_show              @"record_order.html"//获取结算数据
#define add_order_show                 @"add_order.html"//添加订单
#define order_show                     @"order.html"//获取交易界面数据
#define order_detail_show              @"order_detail.html"//结算（合约）详情
#define end_order_show                 @"end_order.html"//平仓（结束订单）
#define cancel_order_show              @"cancel_order.html"//撤销（撤销操作）
#define update_md_order_show           @"update_md_order.html"//设置止盈止损



#endif /* Common_h */

//tag值
/*
 _imageView.tag = 1000+tag;
 button.tag = 100 + i;
 listview.tag = 777+i;
 butoon.tag = 6666+i;
 button51.tag = 50;
 titleLabel.tag = 99;
 
 cellButton1.tag = 123+indexPath.section;
 cellButton1.tag = 234+indexPath.section;
 cellButton1.tag = 345+indexPath.section;
 
 */
